﻿using NHibernate.Criterion;
using SimpleServiceBus.Persistence.Domain.Management.Entities;
using SimpleServiceBus.Persistence.Domain.Management.Repositories;

namespace SimpleServiceBus.Persistence.NHibernate.Repositories
{
    public class EndpointRepository : Repository<ManagedEndpoint>, IEndpointRepository
    {
        public ManagedEndpoint GetByEndpointId(string endpointId)
        {
            return FindOne(Expression.Eq("EndpointID", endpointId));
        }
    }
}
